﻿@{
    ViewBag.Title = "Themdanhmuc";
    Layout = "~/Views/Shared/_Adminlayout.cshtml";
}

<script src="~/Scripts/jquery-1.9.1.js"></script>

<div class="row">
    <div class="col-lg-6">
        @using (@Html.BeginForm("Themdanhmucthietbi", "Admin", FormMethod.Post))
        {

            <h1>Thêm Danh Mục</h1>

            <div class="form-group">
                <label>Tên sản phẩm</label>
                <input class="form-control" name="ten">
            </div>
            <div class="form-group">
                <label>ID cha</label>
                <select id="Select1" class="form-control" name="idcha">
                    <option value="0">0</option>
                    @foreach (var item in ViewBag.idcha)
                    {
                        <option value="@item.id">@item.ten</option>
                    }

                </select>

            </div>


            <button type="submit" class="btn btn-default">Thêm</button>
        }
    </div>
    <div class="col-lg-6" id="content">

    </div>
</div>

